package com.qianfeng.search_7004.service;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qianfeng.search_7004.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * author: 田晋宇
 * datetime:2021/10/29 16:21
 * email:853796359@qq.com
 */
@Service
public class UserServiceImpl implements  UserService{

    @Autowired
    private UserDao userDao;

    @Override
    @Transactional
    @LcnTransaction
    public void add() {
        userDao.getAll();
        userDao.add();
    }
}
